package com.hwl.demo10.service.impl;

import com.hwl.demo10.service.Observer;
import com.hwl.demo10.service.Subject;

/**
 * @author sentry
 * @since 2023-03-19
 */
public class NBAObserver extends Observer {
    public NBAObserver(String name, Subject sub) {
        super(name, sub);
    }

    @Override
    public void update() {
        System.out.println(sub.getName() + "：" + sub.getAction() + "！" + name + "，请关闭NBA直播，赶紧工作。");
    }
}
